$(function(){
	//请选择试卷所属课程
	$(".examination-curriculum").on('click',function(){
		if($(".examination-curriculum ul").is(':hidden')){
	      	$(".examination-curriculum ul").slideDown('slow');        
	    }else{
	      $(".examination-curriculum ul").slideUp('slow');
	    }
	})
	
	$(".examination-curriculum ul li").on('click',function(){
			$(".examination-curriculum span").html($(this).html());
			$(".examination-curriculum ul").slideUp('slow');
	})
	
	//是否单选	
	$(".examination-curriculum").on('click',function(){
		if($(".examination-curriculum ul").is(':hidden')){
	      	$(".examination-curriculum ul").slideDown('slow');        
	    }else{
	      $(".examination-curriculum ul").slideUp('slow');
	    }
	})
	
	$(".examination-curriculum ul li").on('click',function(){
			$(".examination-curriculum span").html($(this).html());
			$(".examination-curriculum ul").slideUp('slow');
	})
	
	//输入文本域的时候
	$(".subject-entry").on({		
		'focus':function(){
			$(this).html("");
			$(this).css("box-shadow","0px 1px 4px rgba(0,0,0,0.5)");
		},
		'blur':function(){
			$(this).html("请输入试题......");
			$(this).css("box-shadow","0px 0px 0px rgba(0,0,0,1)");
		}
	
	})
	
	//试卷单选	
	$(".subject-check").on('click',function(){
		if($(".subject-check-list").is(':hidden')){
	      	$(".subject-check-list").slideDown('slow');        
	    }else{
	      $(".subject-check-list").slideUp('slow');
	    }
	})
	
	$(".subject-check-list li").on('click',function(){
			$(".subject-check span").html($(this).html());
			$(".subject-check-list").slideUp('slow');
	})
})
